From: Alejandro PiƱeiro Date: Tue, 31 Jul 2012 15:53:37 +0000 (+0200) Subject: a11y: adding a proper state for menu items with a dot X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~6087 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=8ebd2ff9eb3eed76a14f569baeb56561dd00c26c;p=gnome-shell.git a11y: adding a proper state for menu items with a dot https://bugzilla.gnome.org/show_bug.cgi?id=682366 --- diff --git a/js/ui/popupMenu.js b/js/ui/popupMenu.js index 3c49c5dc3..dcc23d7f2 100644 --- a/js/ui/popupMenu.js +++ b/js/ui/popupMenu.js @@ -179,12 +179,14 @@ const PopupBaseMenuItem = new Lang.Class({ this._dot = new St.DrawingArea({ style_class: 'popup-menu-item-dot' }); this._dot.connect('repaint', Lang.bind(this, this._onRepaintDot)); this.actor.add_actor(this._dot); + this.actor.add_accessible_state (Atk.StateType.CHECKED); } else { if (!this._dot) return; this._dot.destroy(); this._dot = null; + this.actor.remove_accessible_state (Atk.StateType.CHECKED); } },